package com.hewanglan.subject.domain.service;


import com.hewanglan.subject.common.entity.PageResult;
import com.hewanglan.subject.domain.bo.SubjectInfoBO;
import com.hewanglan.subject.infra.basic.entity.SubjectInfoES;

import java.util.List;

public interface SubjectInfoDomainService {
    /**
     *
     * 新增题目
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 分页查询
     * @param subjectInfoBO
     * @return
     */
    PageResult<SubjectInfoBO> getSubjectPage(SubjectInfoBO subjectInfoBO);

    /**
     * 查询题目信息
     * @param subjectInfoBO
     * @return
     */
    SubjectInfoBO querySubjectInfo(SubjectInfoBO subjectInfoBO);

    /**
     * 全文检索
     * @return
     */
    PageResult<SubjectInfoES> getSubjectPageBySearch(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> getContributeList();
}
